<template>
	<div class="block">
		<h3>
			<a href="#">
				{{title}}
				<i></i>
			</a>
		</h3>
		<ul>
			<li v-for = "item in hot" :pid = "item.pid" @click="toCart(item.pid)">
				<a href="javascript:;">
					<img :src="item.img" alt="item.alt"/>
				</a>
			</li>
		</ul>
	</div>
</template>

<script>
	export default{
		props:["hot","title"],
		methods:{
			toCart(pid){
				this.$router.push({
					path:"/goodslist",
					query:{id:pid}
				})
			}
		}
	}
</script>

<style>
</style>